remapcmd.tfilesource file

Remap 'cmd' to another 'cmd'

Accepts in the source remap a string that has "|" and "(" for grouping. It does NOT support "*" or "?" or any wildcards nor does it accept words that use special characters outside of apostrophe (') or comma ','.

Several forms of the mapping occur: 1. Provide the actual text for the new command OR 2. Do a normal doInstead command with the appropriate values [via execute()] 3. Or put out a message with "" that ends the command [via execute()]

Contributed by Mitchell Mlinar

Licensed using MIT defintion

v1.00: 14 Oct 2025 v1.02: 15 Oct 2025 (thanks to advice/feedback from Eric Eve) v1.03: 16 Oct 2025 (thanks to additional advice/feedback from Eric Eve)

Summary of Classes  

EvalToksError  RemapCmd  remapCmdGrammar(concat)  remapCmdGrammar(grp)  remapCmdGrammar(lit)  remapCmdGrammar(or)  remapCmdGrammar(tail) 

Summary of Global Objects  

remapCmdDicts  remapCmdTokenizer 

Summary of Global Functions  

dumpList  getDataType  remapCmdGrammarConcat  remapCmdGrammarOr  tok_test2 

Global Functions  

dumpList (lst)remapcmd.t[1085]

display the tokens

getDataType (data)remapcmd.t[1108]
no description available

remapCmdGrammarConcat (lstleft, lstright)remapcmd.t[383]
Helper routines for the grammar text expansion

remapCmdGrammarOr (lst, lstright)remapcmd.t[398]
no description available

tok_test2 ( )remapcmd.t[1033]
This is only emabled for testing the tokenizer and parser if you want to see how it operates. You will need to run tok_test2() from somewhere (I usually put it in showIntro for quick/easy/immediate access

Adv3Lite Library Reference Manual
Generated on 08/12/2025 from adv3Lite version 2.2.2